function myPromise() {
    return new Promise(function(resolve, reject) {
        resolve('111')
        reject('222')
    })
}

myPromise()
.then(res => {
    console.log(res);
})
.catch(err => {
    console.log(err);
    
})